﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Imaginecup.factory;

namespace Imaginecup.gameState.malaria.stageMan
{
    public class MalariaStageManFactory:IFactory
    {
        private static MalariaStageManFactory m_Factory = null;

        private MalariaStageMan m_Stage1;

        private MalariaStageManFactory()
        {
            m_Stage1 = new MalariaStageMan(new MalariaStageFactory());
            m_Stage1.LoadStageData();
        }

        public static MalariaStageManFactory GetMalariaStageManFactory()
        {
            if( m_Factory == null )
            {
                m_Factory = new MalariaStageManFactory();
            }
            return m_Factory;
        }
        public Object GetObject(Object StageManID)
        {
            StateStageManID id = (StateStageManID)StageManID;

            switch( id )
            {
                case StateStageManID.MalariaStageMan_1:
                    return m_Stage1;
            }

            return null;
        }
    }
}
